<?php

	// TITLE: donation
	// FILE: scafolding/listDonation.php
	// AUTHOR: AUTOGEN
	// CREATED: 2015/02/18 11:14:28
	// DESCRIPTION: 
	// REQUIREMENTS: 

?>
<h2>donation</h2>
<hr>
<form method="GET" action="index.php">
	<input type="hidden" id="dir" value="<?php echo $dir; ?>">
	<input type="hidden" id="sub" value="<?php echo $sub; ?>">
	<input type="hidden" id="act" value="view">
</form>
<table>
	<thead>
		<tr>
			<th>donation_id</th>
			<th>donor_id</th>
			<th>date</th>
			<th>details</th>
			<th>type_id</th>
			<th>purpose_id</th>
			<th>pledge_id</th>
			<th>who_entered</th>
			<th>when_entered</th>
			<th>who_authorized</th>
			<th>when_authorized</th>
			<th>donationcol</th>
		</tr>
	</thead>
	<tbody>
	<?php foreach ($fields as $field)  { ?>
		<tr onclick="goto('<?php echo $donation->getId(); ?>');">
			<td><?php echo $donation->getDonationId(); ?></td>
			<td><?php echo $donation->getDonorId(); ?></td>
			<td><?php echo $donation->getDate(); ?></td>
			<td><?php echo $donation->getDetails(); ?></td>
			<td><?php echo $donation->getTypeId(); ?></td>
			<td><?php echo $donation->getPurposeId(); ?></td>
			<td><?php echo $donation->getPledgeId(); ?></td>
			<td><?php echo $donation->getWhoEntered(); ?></td>
			<td><?php echo $donation->getWhenEntered(); ?></td>
			<td><?php echo $donation->getWhoAuthorized(); ?></td>
			<td><?php echo $donation->getWhenAuthorized(); ?></td>
			<td><?php echo $donation->getDonationcol(); ?></td>
		</tr>
	<?php } ?>
	</tbody>
</table>

?>
